<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>优永动助手 - 激活</title>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script type="text/javascript" src="/layui/layui.all.js"></script>
    <link rel="stylesheet" href="/css/blog.css">
    <style>
        .titile{
            font-size: 46px;
        }
        #jihuoma {
            margin-top: 50px;
            width: 100%;
            height: 60px;
            border:1px solid #009f00;
            font-size: 50px;
        }
        .jihuobtn{
            width: 80%;
            height: 80px;
            font-size: 50px;
            margin-left: 10%;
            margin-top: 100px;
            background-color: #23b14d;
            border-radius: 20px;
        }
    </style>
</head>
<body>

<div class="layui-row search-main log-title">

    <div class="layui-col-xs2" onclick="history.go(-1)">
        <i class="layui-icon layui-icon-left return-btn"></i>
    </div>

    <div class="layui-col-xs2 layui-col-xs-offset3">激活</div>

</div>


<div class="layui-row blog-main">

    <div class="layui-row titile">激活码秘钥：</div>

    <div class="layui-row">
        <input type="text" id="jihuoma" placeholder="请粘贴激活码秘钥">
    </div>

    <div class="layui-row">
        <button class="layui-btn jihuobtn">提交激活码</button>
    </div>

</div>
<script>
    $(function () {
        $(".jihuobtn").click(function () {

            if($("#jihuoma").val()==''||$("#jihuoma").val()==null){
                alert("请填写秘钥");
                return false;
            }

            $.ajax({
                url:'/jihuoma/jihuo?key='+$("#jihuoma").val(),
                type:'post',
                success:function (data) {
                    alert(data.msg);
                },
                error:function () {
                    alert("请求失败，请重试");
                }
            });

        });
    });
</script>

</div>
</body>
</html>